---
title: Basic Agent
---

## Code

```python cookbook/models/nebius/basic.py
from agno.agent import Agent, RunOutput  # noqa
from agno.models.nebius import Nebius

agent = Agent(
    model=Nebius(),
        markdown=True,
    debug_mode=True,
)

# Get the response in a variable
# run: RunOutput = agent.run("write a two sentence horror story")
# print(run.content)

# Print the response in the terminal
agent.print_response("write a two sentence horror story")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API key">
    ```bash 
        export NEBIUS_API_KEY=xxx 
    ```
  </Step>

  <Step title="Install libraries">
    ```bash 
        pip install -U openai agno 
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
    ```bash Mac
    python cookbook/models/nebius/basic.py
    ```

    ```bash Windows
    python cookbook/models/nebius/basic.py
    ```
    </CodeGroup>

  </Step>
</Steps>
